package com.example.demo.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.example.demo.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 订单 Entity定义
* @author MyName
* @version 1.0
* @date 2024-03-04
* Copyright © MyCompany
*/
@Getter @Setter @Accessors(chain = true)
@TableName("orders")
public class Orders extends BaseCustomEntity {
    private static final long serialVersionUID = 3816697218578582891L;

    /**
    * status字段的关联字典
    */
    public static final String DICT_ORDERSTATUS = "ORDERSTATUS";

    /**
    * 客户 
    */
    @TableField()
    private Long customerId;

    /**
    * 文件 
    */
    @Length(max=100, message="文件长度应小于100")
    @TableField()
    private String fileurl;

    /**
    * 金额 
    */
    @TableField()
    private BigDecimal price;

    /**
    * 状态 
    */
    @Length(max=100, message="状态长度应小于100")
    @TableField()
    private String status;

    /**
    * 快递 
    */
    @TableField()
    private Long expressId;

    /**
    * 快递单号 
    */
    @Length(max=100, message="快递单号长度应小于100")
    @TableField()
    private String expressNo;

    /**
    * 创建人 
    */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
    * 更新人 
    */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
    * 更新时间 
    */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

   @TableField(exist = false)
   private List<String> fileUuidList;
   

} 
